package com.ice.work.moment.facade.socket.mapper;

import com.ice.work.moment.facade.socket.dto.PushAuthorizationDTO;
import com.ice.work.moment.facade.socket.model.PushAuthorization;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.Collection;
import java.util.List;

/**
 * @Description PushAuthorizationConvertMapper
 * @Author DELL
 * @Create 2019-01-09
 * @Since 1.0.0
 */
@Mapper
@SuppressWarnings("all")
public interface PushAuthorizationConvertMapper {
    PushAuthorizationConvertMapper INSTANCE = Mappers.getMapper(PushAuthorizationConvertMapper.class);

    /**
     * to dto
     *
     * @param pushAuthorization
     * @return
     */
    PushAuthorizationDTO toDTO(PushAuthorization pushAuthorization);

    /**
     * collections to dto
     *
     * @param pushAuthorizations
     * @return
     */
    List<PushAuthorizationDTO> toDTO(Collection<PushAuthorization> pushAuthorizations);


}
